package com.zzyl.controller;

import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.service.NursingProjectService;
import com.zzyl.vo.NursingProjectVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：zhangheng
 * @date ：Created in 2024/8/23 10:30
 * @description：护理类项目
 * @modified By：
 * @version:
 */
@Slf4j
@RestController
@RequestMapping("/nursing_project")
public class NursingProjectController {
    @Autowired
    private NursingProjectService nursingProjectService;
    @GetMapping()
    public ResponseResult<PageResponse<NursingProjectVo> >getByPage(String name, Integer pageNum, Integer pageSize, Integer status) {
       PageResponse<NursingProjectVo> nursingProjectPageInfo = nursingProjectService.getByPage(name,pageNum,pageSize,status);

        return ResponseResult.success(nursingProjectPageInfo);
    }
}